package masml2jade;

import java.util.Hashtable;

public abstract class Plan {
	private Hashtable<String, Action> actions = new Hashtable<String, Action>();
	private Goal goal;
	
	// Actions
	public Action getAction(String key) {
		return actions.get(key);
	}
	public void addAction(String key, Action action) {
		actions.put(key, action);
	}
	public Action removeAction(String key) {
		return actions.remove(key);
	}
	
	public Goal getGoal() {
		return goal;
	}
	public void setGoal(Goal goal) {
		this.goal = goal;
	}
	
	public abstract void execute(); 		
	
}
